package com.xqb.modules.service.impl;

import com.xqb.modules.domain.po.LesCourseSubject;
import com.xqb.modules.mapper.LesCourseSubjectMapper;
import com.xqb.modules.service.ILesCourseSubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 课程题目关系列Service业务层处理
 * 
 * @author xqb
 * @date 2024-10-14
 */
@Service
public class LesCourseSubjectServiceImpl implements ILesCourseSubjectService 
{
    @Autowired
    private LesCourseSubjectMapper lesCourseSubjectMapper;

    /**
     * 查询课程题目关系列
     * 
     * @param id 课程题目关系列主键
     * @return 课程题目关系列
     */
    @Override
    public LesCourseSubject selectLesCourseSubjectById(Long id)
    {
        return lesCourseSubjectMapper.selectLesCourseSubjectById(id);
    }

    /**
     * 查询课程题目关系列列表
     * 
     * @param lesCourseSubject 课程题目关系列
     * @return 课程题目关系列
     */
    @Override
    public List<LesCourseSubject> selectLesCourseSubjectList(LesCourseSubject lesCourseSubject)
    {
        return lesCourseSubjectMapper.selectLesCourseSubjectList(lesCourseSubject);
    }

    /**
     * 新增课程题目关系列
     * 
     * @param lesCourseSubject 课程题目关系列
     * @return 结果
     */
    @Override
    public int insertLesCourseSubject(LesCourseSubject lesCourseSubject)
    {
        return lesCourseSubjectMapper.insertLesCourseSubject(lesCourseSubject);
    }

    /**
     * 修改课程题目关系列
     * 
     * @param lesCourseSubject 课程题目关系列
     * @return 结果
     */
    @Override
    public int updateLesCourseSubject(LesCourseSubject lesCourseSubject)
    {
        return lesCourseSubjectMapper.updateLesCourseSubject(lesCourseSubject);
    }

    /**
     * 批量删除课程题目关系列
     * 
     * @param ids 需要删除的课程题目关系列主键
     * @return 结果
     */
    @Override
    public int deleteLesCourseSubjectByIds(Long[] ids)
    {
        return lesCourseSubjectMapper.deleteLesCourseSubjectByIds(ids);
    }

    /**
     * 删除课程题目关系列信息
     * 
     * @param id 课程题目关系列主键
     * @return 结果
     */
    @Override
    public int deleteLesCourseSubjectById(Long id)
    {
        return lesCourseSubjectMapper.deleteLesCourseSubjectById(id);
    }
}
